<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;
use think\facade\Db;


class Agreement extends BaseController
{
    public function index()
    {

        return $this->success(Db::table('agreement')->find(1));
    }


    public function update($id)
    {

        return $this->success(Db::table('agreement')->where('id',$id)->update(request()->param()));
    }



}
